package com.zzxx.photograph.dao;

import com.zzxx.photograph.domain.User;

public interface UserDao {
    int saveUser(User user);

    User findUserByUsername(String username);

    int updateUserStatusByCode(String code);

    User findByUsernameAndPwd(String username, String password);

    void updatePasswordByUsername(String username, String password);

    User getUserByUid(int uid);

    void update(String uid, User user);

    void deleteUserByUid(String uid);

    String findUsernameByEmail(String email);
}
